import yamail
import HTMLTestRunner_PY3

class tools():
    def fasong(self):
        fasong = yamail.SMTP(user='2940554532@qq.com',password='xwntrbbdrwcadhch',host='smtp.qq.com',port=465)
        fasong.send(to='2940554532@qq.com',subject='测试结果',
                    contents='1')
        fasong.close()
    print('发送成功')

    def baogao(self):
        baogao = HTMLTestRunner_PY3.HTMLTestRunner(open(r'E:\Django\DjangoProject\PO\Report\baogao.html','wb'),
                                                   title='测试报告',
                                                   description='测试均通过')
        return baogao